﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;

namespace CityLife.GameLogic
{
    public class CityCanvas 
    {
        public List<ICityElement> CityElements;
        public Canvas Canvas;
        public Canvas GlobalCanvas;


        public CityCanvas()
        {
            CityElements = new List<ICityElement>();
        }

        public void AddCityElement(Zone element)
        {
            string cname = "Zone_" + element.GridColumn.ToString() + "_" + element.GridRow.ToString();


            element.Name = cname;


            CityElements.Add(element);
            Canvas.Children.Add(element);
        }

        public void RemoveCityElement(Zone element)
        {
            CityElements.Remove(element);
            Canvas.Children.Remove(element);
        }
        


    }
}
